package com.example.administrator.zhongyichou.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.administrator.zhongyichou.R;

import java.util.List;

/**
 * Created by lichenyu on 2017/11/27.
 * 描述：
 */

public class HelpedDiseaseAdapter extends ListBaseAdapter {

    public HelpedDiseaseAdapter(Context mContext, List list) {
        super(mContext, list);
    }

    @Override
    public int getCount() {
        return 8;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        if (convertView==null){
            convertView = LayoutInflater.from(getContext()).inflate(R.layout.helped_disease_list_item,null);
        }
        return convertView;
    }
}
